package STUDENT.LETRUNGHIEU.OOPs.ARRAY_EXCERCISES.excercise_2;

public class Models {
	public double average(int[] array){
		double sum = 0;
		for(int e : array){
			sum += e;
		}
		return (sum/array.length);
	}
	
	public double average(double[] array){
		double sum = 0;
		for(double e : array){
			sum += e;
		}
		return (sum/array.length);
	}
}
